//
//  DetailsView.h
//
//  Created by sid on 04/05/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "MBProgressHUD.h"
#import "DirectionsViewController.h"
#import "JSON.h"
#import "MapDirectionsViewController.h"

@interface DetailsView : UIViewController <MBProgressHUDDelegate>
{
	// User interface
	IBOutlet UITableView *tableViewCell;
	IBOutlet UIToolbar *toolbar;
	IBOutlet UIBarButtonItem *locateButton;
	IBOutlet UIBarButtonItem *favoritesButton;
	
	// HTTP connection variables
	NSMutableData *responseData;
	NSMutableArray *items;
	// User location and annotation information
	MyAnnotation *annotation;
	
	// The HUD shown while loading
	MBProgressHUD *hud;
	
	UIAlertView *alertView;
}

- (void)setAnnotation:(MyAnnotation*) annotation;
- (BOOL)inFavorites;
- (IBAction)showDirections;
- (IBAction)addToFavorites;
- (BOOL)containsString:(NSString *)aString inOriginalNSSString:(NSString *)originalStr;
- (void)setSearchingStatus:(BOOL)isSearching;

// - (UITableViewCell *)createCellTemplate:(NSString *)cellIdentifier;
// @property(nonatomic, retain) UITableView *tableViewCell;

@property(nonatomic, retain) MBProgressHUD *hud;
@property(nonatomic, retain) UIAlertView *alertView;

@end